package com.chen.pojo;


import java.util.Date;

//评论实体类
public class Comment {

    private Integer comment_id;//主键自增
    private Date create_time; //创建时间
    private Integer like_count;//点赞数
    private User userId;//评论人
    private Article articleId; //文章id

    public Comment() {
    }

    public Comment(Integer comment_id, Date create_time, Integer like_count, User userId, Article articleId) {
        this.comment_id = comment_id;
        this.create_time = create_time;
        this.like_count = like_count;
        this.userId = userId;
        this.articleId = articleId;
    }

    public Integer getComment_id() {
        return comment_id;
    }

    public void setComment_id(Integer comment_id) {
        this.comment_id = comment_id;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Integer getLike_count() {
        return like_count;
    }

    public void setLike_count(Integer like_count) {
        this.like_count = like_count;
    }

    public User getUserId() {
        return userId;
    }

    public void setUserId(User userId) {
        this.userId = userId;
    }

    public Article getArticleId() {
        return articleId;
    }

    public void setArticleId(Article articleId) {
        this.articleId = articleId;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "comment_id=" + comment_id +
                ", create_time=" + create_time +
                ", like_count=" + like_count +
                ", userId=" + userId +
                ", articleId=" + articleId +
                '}';
    }
}
